$OpenBSD: patch-cmake_modules_csiro_cmake,v 1.1 2011/09/11 14:07:10 naddy Exp $
--- cmake/modules/csiro.cmake.orig	Thu Sep  8 01:23:36 2011
+++ cmake/modules/csiro.cmake	Thu Sep  8 01:24:50 2011
@@ -31,11 +31,11 @@ if(HAVE_QHULL OR WITH_CSA)
     set(NAN_CFLAGS "${NAN_CFLAGS} -mieee-fp")
   else(CMAKE_SYSTEM_PROCESSOR MATCHES "i[0-9]86")
     if(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
-      if(CMAKE_C_COMPILER MATCHES "gcc")
+      if(CMAKE_COMPILER_IS_GNUCC)
         set(NAN_CFLAGS "${NAN_CFLAGS} -mieee")
-      else(CMAKE_C_COMPILER MATCHES "gcc")
+      else(CMAKE_COMPILER_IS_GNUCC)
         set(NAN_CFLAGS "${NAN_CFLAGS} -ieee")
-      endif(CMAKE_C_COMPILER MATCHES "gcc")
+      endif(CMAKE_COMPILER_IS_GNUCC)
     endif(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
   endif(CMAKE_SYSTEM_PROCESSOR MATCHES "i[0-9]86")
   if(NOT DEFINED NaNAwareCCompiler)
